package com.LittleHan.crm.exceptionHandler;

import com.LittleHan.crm.exception.ActivityRemarkException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class ActivityRemarkExceptionHandler {
    @ExceptionHandler(ActivityRemarkException.class)
    @ResponseBody
    public String activityRemarkException(Exception e){
        return "{\"yesOrNo\":\"no\"}";
    }
}
